<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>LISTADO DE CUOTAS PENDIENTES</title>
</head>

<body>
<p><strong>LISTADO DE CUOTAS PENDIENTES</strong></p>

 
<table width="550" height="65" border="1" cellpadding="0" cellspacing="0">
  <tr>
    <th width="100" scope="col">Periodo</th>
    <th width="100" scope="col">Moneda</th>
    <th width="100" scope="col">Importe</th>
    <th width="150" scope="col">Fecha de Vencimiento</th>
    <th width="100" scope="col">Pagar</th>
  </tr>

<%@page import="java.util.*, proyecto.modelo.Cuota" %>
<%
Collection<Cuota> arreglo = (ArrayList<Cuota>)request.getAttribute("cuotasPendientes");
if(arreglo != null) { 
int i = 1;
for(Cuota x : arreglo) {
%>  
  <tr>
    <td><% out.print(x.getPeriodo()); %></td>
    <td><% out.print(x.getMoneda()); %></td>
    <td><% out.print(x.getImporte()); %></td>
    <td><% out.print(x.getFechaVencimiento()); %></td>
    <td><a href="CuotasServlet?accion=pagarCuota&id=<% out.print(x.getIdCuota()); %>">Pagar</a></td>
   
  </tr>
<% }  
  } %>  
</table>

</body>
</html>